/*
 * Created Summer 2011
 */
package edu.gatech.galaxy.model;

//Fixed something here
import edu.gatech.galaxy.model.types.Location2D;

import java.util.ArrayList;
import java.util.List;

/**
 * Represents a single StarSystem that holds multiple planets
 * @author Robert
 * @version 1.0
 * Date: 5/31/11
 * Time: 4:34 PM
 */
public class StarSystem extends UniverseObject {
   
    /**
     * The list of planets in this system
     */
    private final List<Planet> myPlanets;

    /**
     * 
     * Makes a new StarSystem
     * @param name the name of the system
     * @param loc the location of the system
     */
    public StarSystem(String name, Location2D loc) {
        //and down here
        super(name, loc);
        myPlanets = new ArrayList<Planet>();
    }
       
    /**
     * @return the string rep
     */
    public String toString() {
        return "System: " + super.getName();
    }
    
    /**
     * 
     * @param sys the system to calculate the distance to
     * @return the distance from the system to sys
     */
    public double distanceTo(StarSystem sys) {
        return 1.0;
    }
}
